const Store = require('electron-store').default
const store = new Store()

/**
 * 存储数据
 */
export const setData = (key, value) => {
	store.set(key, value)
}

/**
 * 获取数据
 */
export const getData = (key) => {
	return store.get(key)
}

/**
 * 删除数据
 */
export const deleteData = (key) => {
	store.delete(key)
}

/**
 * 清空数据
 */
export const clearData = () => {
	store.clear()
}
